SA-MP Forums Archive
Help with this. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with this. (/showthread.php?tid=154272)



Help with this. - mailliw17 - 13.06.2010

if(strcmp(cmd, "/panic", true) == 0)
{
new name[MAX_PLAYERS], string[50],x;
GetPlayerName(playerid, name, sizeof(name));
if(team[playerid] == 2) return SendClientMessage(playerid, YELLOW, "You are not a human.");
if(team[playerid] != 1) return SendClientMessage(playerid, YELLOW, "You must stay calm.");
format(string, sizeof(string), "%s is Panicing and needs assistance.", name);
for(x=0;x<MAX_PLAYERS;x++)
{
if(team[x] != 2)
{
new Float:X3,Float:Y3,Float:Z3;
DisablePlayerCheckpoint(x);
GetPlayerPos(x,X3,Y3,Z3);
SetPlayerCheckpoint(x,X3,Y3,Z3,8.0);
}
}
SendClientMessageToAll(YELLOW,string);
return 1;
}

how can i make it remove the checkpoint for 1 minute? please reply


Re: Help with this. - TheInnocentOne - 13.06.2010

Do you want to destroy it for one minute and then create it again?


Re: Help with this. - mailliw17 - 13.06.2010

destroy / it will automatically be removed


Re: Help with this. - DJDhan - 13.06.2010

Please give some more info as to what you are trying to do


Re: Help with this. - mailliw17 - 13.06.2010

when i type /panic there will be a checkpoint where people can go there to help me.
when people came there nothing happens i want it to be removed after 1 minute


Re: Help with this. - DJDhan - 13.06.2010

You mean if noone comes to help you, then the checkpoint should be removed?
Or if some players comes and help you, the checkpoint should be removed after 1 minute of recieving help?
Or they should help you within the one minute after which the checkpoint will be gone?


Re: Help with this. - mailliw17 - 13.06.2010

i want to make my skin selection to be like this so they know if its zombies or survivors