15.12.2016, 16:20
I'll advice you to use Dynamic checkpoints
Create each checkpoint for specific classes. and you wont need cases,although you could uses cases Switch(checkpointid)
Create each checkpoint for specific classes. and you wont need cases,although you could uses cases Switch(checkpointid)
PHP код:
Example = CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid){
if(checkpointid == Example) {
if(GetPlayerSkin(playerid) != 285) return SendClientMessage(playerid, -1, "{FF0000}Sorry This Place only For SWAT, you are not SWAT");
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 31, 150);
GivePlayerWeapon(playerid, 34, 50);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, -1, "{FF0000}You have been Refill Come Back After you Dead");
}
}
}