29.11.2011, 21:33
Hi guys lately i was making a DM script and i wanted to make so that if a player writes , /DM he tele's to the DM spot where i made it , thats fine i know how to do that but I wanna make so that when the player write /DMQ to quite from the Deathmatch , he gets all his weapons back and into his position where he entered /DM plz help me heres the pawn code i did so far
I wanna make so that when the player does /DMQ he gets back to his old position where he type /DM , and so that he would get his weps back plz help
Код:
if(strcmp(cmdtext,"/DM",true) == 0)
{
SendClientMessage(playerid, COLOR_RED, "You have joined the Deathmatch");
SetPlayerPos(playerid, -4078.3999023438,-449.10000610352,37.200000762939);
SetPlayerFacingAngle(playerid , 1);
GivePlayerWeapon(playerid, 26,9999);
SetPlayerInterior(playerid, 0);
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "-Deathmatch Info- %s Wlasnie Dolaczyl do DeathMatcha! (/DM) ", pname);
SendClientMessageToAll(COLOR_GOLD, string);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
return 1;
}
if(strcmp(cmdtext,"/DMQ",true) == 0)
{
return 1;
}
I wanna make so that when the player does /DMQ he gets back to his old position where he type /DM , and so that he would get his weps back plz help



plz help