15.07.2015, 07:53
(
Последний раз редактировалось ahmedebrahem; 15.07.2015 в 07:55.
Причина: spel
)
When I Type ex: /pm id text It show me usage /pm id text Not message
#if EnablePM_Cmd == true
And the same wrong with this too
/pgoto id
What should I do ?? :/
Sry For my bad Eng
#if EnablePM_Cmd == true
PHP код:
CMD:pm(playerid,params[])
{
new giveplayerid, inputtext[256];
if (sscanf(params, "us", giveplayerid, inputtext)) return Inter_SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /pm [PlayerID] [Message]");
if(giveplayerid == playerid) return
Inter_SendClientMessage(playerid, red, "ERROR: You can't send PM to yourself!");
if(AccInfo[playerid][NoPM] == 1) //return SendClientMessage(playerid, COLOR_RED, string);
Inter_SendClientMessage(playerid, red, "User is blocked his PM!");
if(!(IsPlayerConnected(giveplayerid) && giveplayerid != INVALID_PLAYER_ID)) return
Inter_SendClientMessage(playerid, red, "ERROR: Player not Connected!");
PMplayer1 = giveplayerid;
GetPlayerName(giveplayerid, PmReceiver, sizeof(PmReceiver));
OnPlayerPrivmsg(playerid, giveplayerid, inputtext);
/* new string[128];
format(string,sizeof(string),"PM To: \"%s(%d)\" \n\nType the message to send:", PmReceiver, PMplayer1);
ShowPlayerDialog(playerid,DIALOG_TYPE_PM,DIALOG_STYLE_INPUT,"PrivateMessage",string,"Send!","Cancel");*/
return 1;
}
#endif
/pgoto id
PHP код:
CMD:pgoto(playerid,params[])
{
new pteleid;
if(sscanf(params,"u",pteleid)) return SendClientMessage(playerid, red, "Usage:/pgoto [playerid]");
if(!IsPlayerConnected(pteleid)) return SendClientMessage(playerid, red, "Player is not connected");
if(pteleid == INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "This isn't a valid player ID");
if(ptele[pteleid]==1) return SendClientMessage(playerid, red, "Player has not enabled ptele command");
new Float:ptelex,Float:pteley,Float:ptelez,int;
GetPlayerPos(pteleid,ptelex,pteley,ptelez);
int = GetPlayerInterior(pteleid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
SetVehiclePos(vid, ptelex, pteley, ptelez+1);
LinkVehicleToInterior(vid, int);
}
else
{
SetPlayerPos(playerid,ptelex,pteley,ptelez+1);
SetPlayerInterior(playerid,int);
}
return 1;
}
Sry For my bad Eng