11.03.2012, 03:43
Eu sou novatгo em pawn, mais tenta assim
Topo do GameMode
Agora na public OnPlayerCommandText(playerid, cmdtext[])
Agora o /ComprarRC
Se te ajudei, deкm representaзгo, dando-me reputation.
Topo do GameMode
PHP код:
new bool:ComprouRC[MAX_PLAYERS];
PHP код:
if (strcmp("/controlarrc", cmdtext, true, 10) == 0)
{
if(ComprouRC[playerid] == false)
{
SendClientMessage(playerid, 0xAFAFAFAA, "Vocк nгo tem RC, use /ComprarRC");
return true;
}
SendClientMessage(playerid, COLOR_GREEN, "Vocк ira controlar um carro RC");
GetPlayerPos(playerid, X, Y, Z);
CarroRC[playerid] = CreateVehicle(441,X, Y, Z,0.0,-1,-1,1000);
PutPlayerInVehicle(playerid, CarroRC[playerid], 0);
return 1;
}
return 0;
}
PHP код:
if (strcmp("/comprarrc", cmdtext, true, 10) == 0)
{
ComprouRC[playerid] = true;
// Funзхes
return 1;
}