01.06.2010, 17:09
Thank you Niixie.
Ok I tried it but for some reason it won't let me use any command no matter the VW I'm in. Obviously I must have put it in the wrong way. >.< Any ideas?
I used this short command as an example to test it.
Ok I tried it but for some reason it won't let me use any command no matter the VW I'm in. Obviously I must have put it in the wrong way. >.< Any ideas?
I used this short command as an example to test it.
pawn Код:
if(!strcmp("/heal", cmdtext, true))
{
new PlayerVW = GetPlayerVirtualWorld(playerid);
if(PlayerVW == 4)
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100.0);
}
else
{
SendClientMessage(playerid, 0xFB0000FF,"SERVER: You cannot use this command here.");
return 1;
}