- เครดิต
- 55
- ความรู้
-
- เงิน $
-
- ความดี
-
|
1. if(strcmp(cmd, "/gethereall", true) == 0) //SAMP-Th
2. {
3. if(IsPlayerConnected(playerid) && PlayerInfo[playerid][pAdmin]) {
4. new Float:x,Float:y,Float:z;
5. GetPlayerPos(playerid, x, y, z);
6. for(new i=0;i<GetMaxPlayers();i++) {
7. if (IsPlayerConnected(i) && i!=INVALID_PLAYER_ID && i!=playerid) {
8. if(GetPlayerState(i)==PLAYER_STATE_DRIVER) SetVehiclePos((i),x,y,z+4);
9. else SetPlayerPos(i,x,y,z+2);
10. SetPlayerInterior(i,GetPlayerInterior(playerid));
11. }
12. }
13. SendClientMessage(playerid,0xFFFFFFFF, "คุณได้ดึงทุกคน!!");
14. }
15. return 1;
16. } |
|