11.05.2012, 18:35
pawn Код:
if(strcmp(cmd, "/veh", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [part]");
if(!strcmp(tmp,"engine"))
{
//functions
}
else if(!strcmp(tmp,"lights"))
{
//functions
}
else if(!strcmp(tmp,"alarm"))
{
//functions
}
else if(!strcmp(tmp,"doors"))
{
//functions
}
else if(!strcmp(tmp,"bonnet"))
{
//functions
}
else if(!strcmp(tmp,"boot"))
{
//functions
}
else if(!strcmp(tmp,"objective"))
{
//functions
}
return true;
}