if(!strcmp(cmdtext, "/spawn", true)) // Teleporte Spawn SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 2107.0806,987.8856,10.8203); SetPlayerFacingAngle(playerid,0.0); new sp[110], nome[24]; GetPlayerName(playerid, nome, 24); format(sp, sizeof(sp), "%s foi para o Spawn. (/spawn)", nome); SendClientMessageToAll(COR_BRANCA, sp); return 1; }
if(!strcmp(cmdtext, "/spawn", true)) // Teleporte Spawn
{
SetPlayerPos(playerid, 2107.0806,987.8856,10.8203);
SetPlayerFacingAngle(playerid,0.0);
new sp[110], nome[24]; GetPlayerName(playerid, nome, 24);
format(sp, sizeof(sp), "%s foi para o Spawn. (/spawn)", nome);
SendClientMessageToAll(COR_BRANCA, sp);
return 1;
}
pawn Код:
Ajudei? Repu ae |
if(!strcmp(cmdtext, "/spawn", true)) // Teleporte Spawn
{
SetPlayerPos(playerid, 2107.0806,987.8856,10.8203);
SetPlayerFacingAngle(playerid,0.0);
new sp[110], nome[24]; GetPlayerName(playerid, nome, 24);
SendClientMessage(playerid, COR_BRANCA, "%s foi para o Spawn. [/spawn]");
return 1;
}
if (strcmp("/spawn", cmdtext, true, 10) == 0)
{
new sp[110], nome[24]; GetPlayerName(playerid, nome, 24);
SetPlayerPos(playerid, 2107.0806,987.8856,10.8203);
format(sp, sizeof(sp), "%s foi para o Spawn. (/spawn)", nome);
SendClientMessageToAll(COR_BRANCA, sp);
return 1;
}
if(!strcmp(cmdtext, "/spawn", true))
{
new sp[110], nome[24]; GetPlayerName(playerid, nome, 24);
SetPlayerPos(playerid, 2107.0806,987.8856,10.8203);
format(sp, sizeof(sp), "%s foi para o Spawn. (/spawn)", nome);
SendClientMessageToAll(COR_BRANCA, sp);
return 1;
}
if(strcmp(cdmtext "/spawn", true, 10) == 0) // Teleporte Spawn
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2107.0806,987.8856,10.8203);
SetPlayerFacingAngle(playerid,0.0);
new sp[110], nome[24]; GetPlayerName(playerid, nome, 24);
format(sp, sizeof(sp), "%s foi para o Spawn. (/spawn)", nome);
SendClientMessageToAll(COR_BRANCA, sp);
return 1;
}
CMD:spawn(playerid, params[])
{
new str[56], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
SetPlayerPos(playerid, 2107.0806, 987.8856, 10.8203);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 0.0);
format(str, sizeof(str), "* %s foi para o Spawn. ( /spawn ) *", nome);
SendClientMessageToAll(0xFF00FFAA, str);
return 1;
}
Simples
pawn Код:
|