CMD:az(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid)) { if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!"); CarSpawner(playerid,0); TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid); tseconds[playerid] = 3; format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1); if(PlayerInfo[playerid][Level] >= 1) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring); vCount[playerid] = 1; Tx[playerid] = -921.010301; Ty[playerid] = 536.524665; Tz[playerid] = 6.936157; Ti[playerid] = 0; if(PlayerInfo[playerid][Level] >=4) { for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v); } format(telestring,43,"Welcome to 4 Mansion's Admin Zone"); SetTimerEx("setstunt",3000,0,"i", playerid); SendClientMessageToAll(COLOR_YELLOW,"Some Admin Just Joined in 4 Mansion's Admin Zone /az"); return 1; } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command"); }
CMD:az(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid)) {
if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
CarSpawner(playerid,0);
TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
tseconds[playerid] = 3;
format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
if(PlayerInfo[playerid][Level] >= 1) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
vCount[playerid] = 1;
Tx[playerid] = -921.010301;
Ty[playerid] = 536.524665;
Tz[playerid] = 6.936157;
Ti[playerid] = 0;
if(PlayerInfo[playerid][Level] >=4) {
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v);
}
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
SendClientMessageToAll(COLOR_YELLOW,"%s Just Joined in 4 Mansion's Admin Zone /az",PlayerName);
format(telestring,43,"Welcome to 4 Mansion's Admin Zone");
SetTimerEx("setstunt",3000,0,"i", playerid);
SendClientMessageToAll(COLOR_YELLOW,"Some Admin Just Joined in 4 Mansion's Admin Zone /az");
return 1;
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v);
}
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,RED,"You are in car");
print("\n%s Just Joined in 4 Mansion's Admin Zone /az",GetName(playerid));
pawn Код:
|
Originally Posted by martini002
ill test it right now wait, hmmm but this print in the chat box or in the middle of the screen?
|
well not work =/ so with printf will work only for admins or other players too?
|
SATDM\SAMP 0.3b\Gamemodes\SATDM_v10.pwn(50637) : warning 202: number of arguments does not match definition SATDM\SAMP 0.3b\Gamemodes\SATDM_v10.pwn(50637) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
50637 printf("\n%s Just Joined in 4 Mansion's Admin Zone /az",GetPlayerName(playerid));
Use GetName(playerid), not GetPlayerName(playerid)
new PlayerName[MAX_PLAYER_NAME], tstring[126];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
printf("\n%s (ID:%d) Just Joined in 4 Mansion's Admin Zone /az!",PlayerName,playerid);
format(tstring,sizeof(tstring),"%s (ID:%d) Just Joined in 4 Mansion's Admin Zone /az!",PlayerName,playerid);
SendClientMessageToAll(COLOR_YELLOW,tstring);