04.05.2009, 16:23
is good? will work?
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nrg", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
GetVehiclePos(522, X, Y, Z); //NRG
//GetPlayerVehicleID(522, X, Y, Z)playerid;
SendClientMessage(playerid, COLOR_GREEN, "NRG Spawnat!");
}
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nrg", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
GetVehiclePos(522, X, Y, Z); //NRG
//GetPlayerVehicleID(522, X, Y, Z)playerid;
SendClientMessage(playerid, COLOR_GREEN, "NRG Spawnat!");
}
return 1;
}
return 0;
}