04.01.2011, 01:49
why wont this work
sorry how it looks it all ways copy over to samp forum shit
Код:
if(strcmp(cmd, "/car", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[32];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /car [name]");
SendClientMessage(playerid, COLOR_GRAD1, "Available names: engine, lights, trunk, status, fuel");
return 1;
}
else if(strcmp(x_nr,"lights",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid ,engine,lights,alarm,doors,bonnet,boot,objective);
if (lights==1)
{
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
else
{
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
return 1;
}
sorry how it looks it all ways copy over to samp forum shit


