03.11.2015, 09:22
Then do the same thing as OnPlayerSpawn but inside a command
PHP код:
CMD:spawn(playerid, params[])
{
if(JustDied[playerid] == true)
{
/*
Just remove SetPlayerSkin and insert your code for them to select a skin.
*/
SetPlayerPos(playerid, 254.5229, -1367.1545, 53.1094);
SetPlayerFacingAngle(playerid, 297.0670);
SetPlayerSkin(playerid, 51); // Biker Skin?
SetPlayerTeam(playerid, pBikers);
JustDied[playerid] = false;
}
else SendClientMessage(playerid, -1, "Unable to process command");
return 1;
}