28.12.2015, 16:56
Hello Who Knows This Bug ?
If I am in Car than don't respawn me in right position
Wich is in this video:
[ame]http://www.youtube.com/watch?v=BawJDRZiYLc[/ame]
Here is CMD:
If I am in Car than don't respawn me in right position
Wich is in this video:
[ame]http://www.youtube.com/watch?v=BawJDRZiYLc[/ame]
Here is CMD:
PHP код:
CMD:respawn(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED, "login!");
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
{
new id,sendername[30],giveplayer[30],string[100];
if(sscanf(params, "u", id)) return SCM(playerid,COLOR_WHITE,"type: /respawn <Name/Playerid>");
{
if(IsPlayerConnected(id))
{
if(id != INVALID_PLAYER_ID)
{
GetPlayerName(id, giveplayer, sizeof(giveplayer));
SpawnPlayer(id);
GetPlayerName(playerid, sendername, sizeof(sendername));
return 1;
}
}
else
{
SCM(playerid,COLOR_WHITE,"The player is not connected.");
}
}
}
else
{
SCM(playerid, COLOR_WHITE, AdminOnly);
}
}
return 1;
}