30.11.2009, 12:37
Ex : I died in /Dm1. I want to respawn in /dm1. And I written this codes :
First
OnPlayerConnect
OnPlayerCommandText
-------OnPlayerDeath---------
I haven't warning(Compiled). Later, I died in /dm1. I teleport /dm1 in first.
Help me please.
Sorry, My English is not bad ( )
Thanks...
First
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
enum pInfo { Area, };
Код:
PlayerInfo[playerid][Area] = 0;
Код:
if(!strcmp(cmdtext,"/dm1",true)) { PlayerInfo[playerid][Area] = 1; SetPlayerPos(playerid, 1653.2175,2409.2781,10.9262); return 1; }
Код:
if(PlayerInfo[playerid][Area] == 1) { SendClientMessage(playerid, COLOR_GREEN, "[Dm-1]"); GivePlayerWeapon(playerid,32,250); GivePlayerWeapon(playerid,26,250); GivePlayerWeapon(playerid,22,250); GivePlayerWeapon(playerid,31,250); SetPlayerPos(playerid, 1653.2175,2409.2781,10.9262); }
Help me please.
Sorry, My English is not bad ( )
Thanks...