25.03.2011, 14:23
Код:
if (strcmp("/teleports", cmdtext, true, 10) == 0)
if (strcmp("/teleports", cmdtext, true, 10) == 0)
if (strcmp("/t", cmdtext, true, 10) == 0)
{
OnPlayerCommandText(playerid, "/teleports");
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[]) { if (strcmp("/teleports", cmdtext, true, 10) == 0) { dm1[playerid]=1; ShowPlayerDialog(playerid,dm,DIALOG_STYLE_LIST,"Teleports Menu","Las Venturas\nLos Santos\nSan Fiero\nDive From Sky\nLos Santos Airport\nLas Venturas Airport\nAbandoned Airport","Select","Cancel"); return 1; } if(dm1[playerid] == 1) if(!strcmp(cmdtext,"",true)) { return 1; } return 0; }
if(strcmp(cmd, "/teleports", true)==0 || strcmp(cmd, "/t", true)==0)
{
//Stuff here
return 1;
}
pawn Код:
|