30.10.2018, 19:10
Is this good?
PHP Code:
case 1:
{
if((MedicJob[playerid] != 1) && (pInfo[playerid][pSkin] != 33)) return SendClientMessage(playerid, -1, "Not medic!");
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 275.4052,1863.5951,8.7578, 2.0);
SendClientMessage(playerid, -1, "yr.");
SendClientMessage(playerid,-1,"y.");
MedicJob[playerid] = 2;
CP[playerid] = 0;
zombieskilled = pInfo[playerid][ZombiesKilled];
}
}
case 2:
{
if((MedicJob[playerid] == 2) && (CP[playerid] != 0)) return SendClientMessage(playerid, -1, "y!");
if(pInfo[playerid][ZombiesKilled] > zombieskilled)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, -1, "y");
SendClientMessage(playerid, -1, "y");
MedicJob[playerid] = 0;
CP[playerid] = 0;
ApplyActorAnimation(Actors[8], "DEALER", "DEALER_DEAL",4.1,0,0,0,1,1);
ApplyActorAnimation(playerid, "DEALER", "DEALER_DEAL",4.1,0,0,0,1,1);
defer ResetAction(playerid, ACTION_ANIMATION);
}
else return SendClientMessage(playerid,-1, "y");
}