Preventing some commands in a different world
#4

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)