11.03.2012, 03:13
pawn Код:
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new Float:X, Float:Y, Float:Z;
//new Float: playerPos;
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/controlarrc", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "Vocк ira controlar um carro RC");
GetPlayerPos(playerid, X, Y, Z);
CreateVehicle(441,X, Y, Z,0.0,-1,-1,1000);
PutPlayerInVehicle(playerid, 441, 0);
return 1;
}
return 0;
}