Thread: 200 Mp
View Single Post
  #3  
Old 07-17-2001, 05:09 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
NPC Code:

if (created) {
setstring playermagic,playermp;
}

if (playerenters) {
toweapons -200 MP;
}

if (strtofloat(#s(playermagic))>playermp) {
tempplayermagic=int(strtofloat(#s(playermagic))-playermp/2);
setstring playermagic,#v(tempplayermagic);
}



This might work, im not sure. Im too tired to load up the editor so....You just have to try it.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote