[Help] Dm spawn codding.
#1

Ex : I died in /Dm1. I want to respawn in /dm1. And I written this codes :

First


Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
enum pInfo
{
  Area,
};
OnPlayerConnect
Код:
PlayerInfo[playerid][Area] = 0;
OnPlayerCommandText
Код:
if(!strcmp(cmdtext,"/dm1",true)) {
PlayerInfo[playerid][Area] = 1;
SetPlayerPos(playerid, 1653.2175,2409.2781,10.9262);
return 1;
}
-------OnPlayerDeath---------
Код:
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);
}
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...
Reply


Messages In This Thread
[Help] Dm spawn codding. - by SavageTR - 30.11.2009, 12:37
Re: [Help] Dm spawn codding. - by Remi-X - 30.11.2009, 12:43
Re: [Help] Dm spawn codding. - by SavageTR - 30.11.2009, 14:49
Re: [Help] Dm spawn codding. - by xxmitsu - 30.11.2009, 15:04
Re: [Help] Dm spawn codding. - by Doppeyy - 30.11.2009, 15:32
Re: [Help] Dm spawn codding. - by SavageTR - 30.11.2009, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)