02.11.2015, 11:34
PHP код:
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
CMD:teleport(playerid, params[]) {
if(isnull(params)) return SendClientMessage(playerid, -1, "/teleport <name>!");
if(!strcmp(params, "LV", true)) {
//Teleport to LV
}
else if(!strcmp(params, "LS", true)) {
//Teleport to LS
}
else SendClientMessage(playerid, -1, "Not a valid teleport name!");
return 1;
}